##
## Makefile for  in /home/costa_k//rendulocal/cunix/philosophe/epi-philosophes
## 
## Made by kevin costa
## Login   <costa_k@epitech.net>
## 
## Started on  Wed May  4 17:21:43 2011 kevin costa
## Last update Wed May  4 18:04:39 2011 Cedric
##

NAME	=	philo1
NAME_DE	=	beta

SRCS	=	srcs/main.c		\
		srcs/init.c		\
		srcs/destroy.c		\
		srcs/loop.c		\
		srcs/actions.c		\
		srcs/xmalloc.c		\
		srcs/xpthreads.c	\
		srcs/xwrite.c

OBJS	=	$(SRCS:.c=.o)
GCC	=	gcc

CFLAGS	=	-I./headers/ -Wall -Werror -Wextra -pedantic -ansi
LDFLAGS =	-lpthread

RM	=	rm -Rf
DEBUG	=	-g


$(NAME) :	$(OBJS)
	$(GCC) -o $(NAME) $(CFLAGS) $(OBJS) $(LDFLAGS)

clean	:
	$(RM) *~
	$(RM) *#
	$(RM) *.o

fclean	:	clean
	$(RM) $(NAME)
	$(RM) $(NAME_DE)

re	:	fclean $(NAME)

debug	:
	$(GCC) $(DEBUG) -o $(NAME_DE) $(CFLAGS) $(SRCS) $(LDFLAGS)